package com.zysstudy.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zhaoyoushui
 * @date 2023/8/1 19:41
 */

@Component
@ConfigurationProperties(prefix = "demo.book")
public class BookComponent {
    /**
     * 书名
     */
    private String name;

    /**
     * 作者
     */
    private String writer;

    public String getName() {
        return this.name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getWriter() {
        return this.writer;
    }

    public void setWriter(String writer) {
        this.writer = writer;
    }
}
